<?php

require_once('../../config.php');

require_once(WSB_MODULES_PATH .'sherpa/models/BasketGateway.php');
$gateway = new Sherpa_Model_BasketGateway();
$productCount = $gateway->countProducts();

header('Content-type: application/json');
echo Zend_Json::encode(intval($productCount));
